﻿<%@ Page Title="" Language="C#" MasterPageFile="~/resumemanager/resume.master" %>

<%@ Import Namespace="TalentPools.Model" %>
<%@ Import Namespace="TalentPools.BLL" %>
<script runat="server">
    public static string resumeid;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["userid"] == null)
            {
                Response.Redirect("~/Default.aspx");
            }
            resumeid = Request.QueryString["id"];
            string userid = Session["userid"].ToString();
            ///绑定信息
            ddpjob.DataSource = new baseConfigManager().getconfigInfo("职位");
            ddpjob.DataTextField = "value";
            ddpjob.DataValueField = "key";
            ddpjob.DataBind();
            ddrepjob.DataSource = new baseConfigManager().getconfigInfo("职位");
            ddrepjob.DataTextField = "value";
            ddrepjob.DataValueField = "key";
            ddrepjob.DataBind();
            ///显示个人信息表的内容
            resume re = new checkresumeManager().getresumeByresumeid(resumeid).Single();
            //txtresume.Text = re.resumeName;
            txtname.Text = re.name;
            //ddrpsex.SelectedValue = re.sex;
            txtbir.Text = re.birthday.ToShortDateString();
            // drpstate.SelectedValue = re.marriage;
            txtcard.Text = re.card;
            //drppoli.SelectedValue = re.politicsStatus;
            txtpalce.Text = re.HKPlace;
            txtcity.Text = re.city;
            txtaddre.Text = re.currentAddress;
            txtcode.Text = re.zipCode;
            txtmobile.Text = re.cellphone;
            txtphone.Text = re.phoneCode;
            txtemail.Text = re.email;
            txtindex.Text = re.email;
            //ddrppublic.SelectedValue = re.publicStatus.ToString();
            ///显示求职意向表的内容
            if (new alertResumeManager().getintecountByid(resumeid) != 0)
            {
                intention inte = new alertResumeManager().getintentionByid(resumeid).Single();
                ddrpjobstyle.SelectedValue = inte.jobCategory;
                txtjobarea.Text = inte.area;
                ddpjob.SelectedValue = inte.profession;
                txthang.Text = inte.industry;
                drpsalary.SelectedValue = inte.pay;
                drpcurstate.SelectedValue = inte.state;
            }

            ///显示培训信息的内容 
            if (new alertResumeManager().gettraincountByid(resumeid) != 0)
            {
                training tra = new alertResumeManager().gettraningByid(resumeid).Single();
                txttittle.Text = tra.tittle;
                txtbegintime.Text = tra.beginTime.ToString();
                txtendtime.Text = tra.endTime.ToString();
                txtresult.Text = tra.result;
                txtdetail.Text = tra.details;
            }

            //显示工作经历的内容
            if (new alertResumeManager().getrecorcountByid(resumeid) != 0)
            {
                record rec = new alertResumeManager().getrecordByid(resumeid).Single();
                txtrename.Text = rec.title;
                txtrebegintime.Text = rec.beginTime.ToShortDateString();
                txtreendtime.Text = rec.endTime.ToShortDateString();
                txtrecon.Text = rec.content;
                txtredetails.Text = rec.details;

            }

            //显示自定义内容
            if (new alertResumeManager().getcustocountByid(resumeid) != 0)
            {
                custom cus = new alertResumeManager().getcustomeByid(resumeid).Single();
                txtzitittle.Text = cus.tittle;
                txtzicon.Text = cus.content;

            }
            Session["resumeid"] = resumeid;
        }
    }

    protected void btnsubmit_Click(object sender, ImageClickEventArgs e)
    {
        resume re = new resume();
        // re.id = resumeid.ToString();
        re.name = txtname.Text.ToString();
        // re.sex = ddrpsex.SelectedValue.ToString();
        re.birthday = Convert.ToDateTime(txtbir.Text.ToString());
        // re.marriage = drpstate.SelectedValue.ToString();
        re.card = txtcard.Text.ToString();
        // re.politicsStatus = drppoli.SelectedValue.ToString();
        re.HKPlace = txtpalce.Text.ToString();
        re.city = txtcity.Text.ToString();
        re.currentAddress = txtaddre.Text.ToString();
        re.zipCode = txtcode.Text.ToString();
        re.cellphone = txtmobile.Text.ToString();
        re.phoneCode = txtphone.Text.ToString();
        re.email = txtemail.Text.ToString();
        re.homePage = txtindex.Text.ToString();
        // re.modifyTime = DateTime.Now;
        //re.resumeName = txtresume.Text.ToString();
        //re.publicStatus =Convert.ToInt32(ddrppublic.SelectedValue);
        if (Convert.ToInt32(ddrppublic.SelectedValue) == 1)
        {
            if (new alertResumeManager().getpubliccount(Session["userid"].ToString()) >= 1)
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(string), "", "alert('已经有了一份公开的简历了')", true);
                return;

            }
        }
        new alertResumeManager().updatResumeByid(re);

    }
    /// <summary>
    /// 更新求职意向表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imbtnnext_Click(object sender, ImageClickEventArgs e)
    {
        intention inte = new intention();
        inte.jobCategory = ddrpjobstyle.SelectedValue;
        inte.area = txtjobarea.Text;
        inte.profession = ddpjob.SelectedValue;
        inte.industry = txthang.Text;
        inte.pay = drpsalary.SelectedValue;
        inte.state = drpcurstate.SelectedValue;
        inte.resumeId = resumeid;
        new alertResumeManager().updatinteByid(inte);
    }
    /// <summary>
    /// 更新培训经历表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imgbtnmynext_Click(object sender, ImageClickEventArgs e)
    {
        training tra = new training();
        tra.resumeId = resumeid;
        tra.tittle = txttittle.Text;
        tra.beginTime = Convert.ToDateTime(txtbegintime.Text);
        tra.endTime = Convert.ToDateTime(txtendtime.Text);
        tra.result = txtresult.Text;
        tra.details = txtdetail.Text;
        new alertResumeManager().updateTraning(tra);
    }
    /// <summary>
    /// 更新工作经历表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imgbtnnext_Click(object sender, ImageClickEventArgs e)
    {
        record rec = new record();
        rec.title = txtrename.Text;
        rec.beginTime = Convert.ToDateTime(txtrebegintime.Text);
        rec.endTime = Convert.ToDateTime(txtreendtime.Text);
        rec.content = txtrecon.Text;
        rec.details = txtredetails.Text;
        rec.resumeId = resumeid;
        new alertResumeManager().updaterec(rec);
    }
    /// <summary>
    /// 更新自定义表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnsave_Click(object sender, ImageClickEventArgs e)
    {
        custom cus = new custom();
        cus.resumeId = resumeid;
        cus.tittle = txtzitittle.Text;
        cus.content = txtzicon.Text;
        new alertResumeManager().updatecustom(cus);
    }
    /// <summary>
    /// 添加求职意向表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imbtnreinte_Click(object sender, ImageClickEventArgs e)
    {
        intention inte = new intention();
        inte.jobCategory = drpjobc.SelectedValue;
        inte.area = txtrejobarea.Text;
        inte.profession = ddrepjob.SelectedValue;
        inte.industry = txtrehang.Text;
        inte.pay = drpresala.SelectedValue;
        inte.state = drprestate.SelectedValue;
        inte.resumeId = resumeid;
        new alertResumeManager().inertinte(inte);
    }
    /// <summary>
    /// 添加培训经历表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imbtnsavetra_Click(object sender, ImageClickEventArgs e)
    {
        training tra = new training();
        tra.resumeId = resumeid;
        tra.tittle = txtretittle.Text;
        tra.beginTime = Convert.ToDateTime(txttrabegintime.Text);
        tra.endTime = Convert.ToDateTime(txttraendtime.Text);
        tra.result = txttraresult.Text;
        tra.details = txttradetail.Text;
        new alertResumeManager().inserttra(tra);
    }
    /// <summary>
    /// 添加工作经历表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imbtnsaverec_Click(object sender, ImageClickEventArgs e)
    {
        record rec = new record();
        rec.title = txtrecname.Text;
        rec.beginTime = Convert.ToDateTime(txtrecbegintime.Text);
        rec.endTime = Convert.ToDateTime(txtrecendtime.Text);
        rec.content = txtrecre.Text;
        rec.details = txtrecde.Text;
        new alertResumeManager().insertrecord(rec);
    }
    /// <summary>
    /// 添加自定义表
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnsavcus_Click(object sender, ImageClickEventArgs e)
    {
        custom cus = new custom();
        cus.resumeId = resumeid;
        cus.tittle = txtcuti.Text;
        cus.content = txtcucon.Text;
        new alertResumeManager().insertcustom(cus);
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../js/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var seid = '<%=Session["resumeid"] %>';
            //求职意向表
            $.get("../HandlerControl/getintecount.ashx", { "id": seid }, function (data, status) {
                if (status == "success") {
                    if (data == 0) {
                        $("#tab21").css("display", " ");
                        $("#tab2").css("display", "none");
                    }
                    else {
                        $("#tab21").css("display", "none");
                        $("#tab2").css("display", " ");
                    }
                }

            });
            //培训经历表
            $.get("../HandlerControl/gettraningcout.ashx", { "trid": seid }, function (data, status) {
                if (status == "success") {
                    if (data == 0) {
                        $("#tab31").css("display", " ");
                        $("#tab3").css("display", "none");
                    }
                    else {
                        $("#tab31").css("display", "none");
                        $("#tab3").css("display", " ");
                    }
                }

            });
            //工作经历表
            $.get("../HandlerControl/getrecorcount.ashx", { "reid": seid }, function (data, status) {
                if (status == "success") {
                    if (data == 0) {
                        $("#tab41").css("display", " ");
                        $("#tab4").css("display", "none");
                    }
                    else {
                        $("#tab41").css("display", "none");
                        $("#tab4").css("display", " ");
                    }
                }

            });
            //自定义表
            $.get("../HandlerControl/getcuscount.ashx", { "cuid": seid }, function (data, status) {
                if (status == "success") {
                    if (data == 0) {
                        $("#tab51").css("display", " ");
                        $("#tab5").css("display", "none");
                    }
                    else {
                        $("#tab51").css("display", "none");
                        $("#tab5").css("display", " ");
                    }
                }

            });

        });
      
    </script>
    <script type="text/javascript">


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabs">
        <div id="tab1">
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td class="style2">
                        简历名称:
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtresume" runat="server" Style="margin-left: 0px" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtresume"
                            ErrorMessage="*必填" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        姓名:
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtname" runat="server" Style="margin-left: 0px" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtname"
                            ErrorMessage="*必填" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        性别:
                    </td>
                    <td class="style3">
                        <asp:DropDownList ID="ddrpsex" runat="server">
                            <asp:ListItem>男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        出生日期:
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtbir" runat="server" ForeColor="#999966" ValidationGroup="first">格式为&quot;2010-2-1&quot;</asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtbir"
                            Display="Dynamic" ErrorMessage="格式错误需填写如&quot;2011-1-1&quot;" ValidationExpression="\d{4}-\d{1,2}-\d{1,2}"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtbir"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        婚姻状态:
                    </td>
                    <td class="style3">
                        <asp:DropDownList ID="drpstate" runat="server" ValidationGroup="first">
                            <asp:ListItem>保密</asp:ListItem>
                            <asp:ListItem>未婚</asp:ListItem>
                            <asp:ListItem>已婚</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        身份证号：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtcard" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtcard"
                            ErrorMessage="*必填" Font-Size="12px" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtcard"
                            Display="Dynamic" ErrorMessage="格式错误" Font-Size="12px" ValidationExpression="\d{17}[\d|X]|\d{15}"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        政治面貌：
                    </td>
                    <td class="style3">
                        <asp:DropDownList ID="drppoli" runat="server" ValidationGroup="first">
                            <asp:ListItem>群众</asp:ListItem>
                            <asp:ListItem>团员</asp:ListItem>
                            <asp:ListItem>党员</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        户口所在地：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtpalce" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtpalce"
                            ErrorMessage="*必填" Font-Size="12px" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        现居住城市：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtcity" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtcity"
                            ErrorMessage="*必填" Font-Size="12px" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        通信地址：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtaddre" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtaddre"
                            ErrorMessage="*必填" Font-Size="12px" Display="Dynamic" ValidationGroup="first"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        邮政编码：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtcode" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtcode"
                            Display="Dynamic" ErrorMessage="*必填" Font-Size="12px" ValidationGroup="first"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtcode"
                            Display="Dynamic" ErrorMessage="格式错误" Font-Size="12px" ValidationExpression="\d{6}"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        手机：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtmobile" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtmobile"
                            Display="Dynamic" ErrorMessage="*必填" Font-Size="12px" ValidationGroup="first"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtmobile"
                            Display="Dynamic" ErrorMessage="格式错误" Font-Size="12px" ValidationExpression="\d{11}"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        电话：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtphone" runat="server" ValidationGroup="first"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        电子邮件：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtemail" runat="server" ValidationGroup="first"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtemail"
                            Display="Dynamic" ErrorMessage="*必填" Font-Size="12px" ValidationGroup="first"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtemail"
                            Display="Dynamic" ErrorMessage="格式错误" Font-Size="12px" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ValidationGroup="first"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        个人主页：
                    </td>
                    <td class="style3">
                        <asp:TextBox ID="txtindex" runat="server" ValidationGroup="first"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        公开状态:
                    </td>
                    <td class="style3">
                        <asp:DropDownList ID="ddrppublic" runat="server" ValidationGroup="first">
                            <asp:ListItem Value="1">公开</asp:ListItem>
                            <asp:ListItem Value="0">不公开</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2" colspan="2">
                        <asp:ImageButton ID="btnsubmit" runat="server" ImageUrl="~/img/create.gif" OnClick="btnsubmit_Click"
                            ValidationGroup="first" />
                    </td>
                </tr>
            </table>
        </div>
        <br />
        <div id="tab2">
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td class="style1">
                        求职类型:
                    </td>
                    <td>
                        <asp:DropDownList ID="ddrpjobstyle" runat="server">
                            <asp:ListItem>全职</asp:ListItem>
                            <asp:ListItem>兼职</asp:ListItem>
                            <asp:ListItem>皆可</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        工作地点:
                    </td>
                    <td>
                        <asp:TextBox ID="txtjobarea" runat="server" ValidationGroup="secod" AutoPostBack="True"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtjobarea"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="secod"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        职业:
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddpjob">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="ddpjob"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="secod"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        行业:
                    </td>
                    <td>
                        <asp:TextBox ID="txthang" runat="server" ValidationGroup="secod"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txthang"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="secod"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        薪资:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpsalary" runat="server">
                            <asp:ListItem>面议</asp:ListItem>
                            <asp:ListItem>1000~2000</asp:ListItem>
                            <asp:ListItem>2000~3000</asp:ListItem>
                            <asp:ListItem>3000~4000</asp:ListItem>
                            <asp:ListItem>4000~5000</asp:ListItem>
                            <asp:ListItem>5000以上</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        目前状态:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpcurstate" runat="server">
                            <asp:ListItem>待业中</asp:ListItem>
                            <asp:ListItem>仍在工作</asp:ListItem>
                            <asp:ListItem>下岗工人</asp:ListItem>
                            <asp:ListItem>应届毕业生</asp:ListItem>
                            <asp:ListItem>留学生</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="imbtnnext" runat="server" ImageUrl="~/img/create.gif" OnClick="imbtnnext_Click"
                            ValidationGroup="secod" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab21">
            <span style="font-size: 12px; color: Red;">你没有填写求职意向表在此可以添加</span>
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td class="style1">
                        求职类型:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpjobc" runat="server" ValidationGroup="reinte">
                            <asp:ListItem>全职</asp:ListItem>
                            <asp:ListItem>兼职</asp:ListItem>
                            <asp:ListItem>皆可</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        工作地点:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrejobarea" runat="server" ValidationGroup="reinte"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtrejobarea"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="reinte"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        职业:
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddrepjob" ValidationGroup="reinte">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddrepjob"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="reinte"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        行业:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrehang" runat="server" ValidationGroup="reinte"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtrehang"
                            Display="Dynamic" ErrorMessage="*必填" ValidationGroup="reinte"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        薪资:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpresala" runat="server" ValidationGroup="reinte">
                            <asp:ListItem>面议</asp:ListItem>
                            <asp:ListItem>1000~2000</asp:ListItem>
                            <asp:ListItem>2000~3000</asp:ListItem>
                            <asp:ListItem>3000~4000</asp:ListItem>
                            <asp:ListItem>4000~5000</asp:ListItem>
                            <asp:ListItem>5000以上</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        目前状态:
                    </td>
                    <td>
                        <asp:DropDownList ID="drprestate" runat="server" ValidationGroup="reinte">
                            <asp:ListItem>待业中</asp:ListItem>
                            <asp:ListItem>仍在工作</asp:ListItem>
                            <asp:ListItem>下岗工人</asp:ListItem>
                            <asp:ListItem>应届毕业生</asp:ListItem>
                            <asp:ListItem>留学生</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="imbtnreinte" runat="server" ImageUrl="~/img/create.gif" OnClick="imbtnreinte_Click"
                            ValidationGroup="reinte" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab3">
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txttittle" runat="server" ValidationGroup="three"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txttittle"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        开始时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtbegintime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" Style="margin-bottom: 0px" ValidationGroup="three"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtbegintime"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        截止时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtendtime" runat="server" ValidationGroup="three" CssClass="Wdate"
                            onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" Width="148px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtendtime"
                            ErrorMessage="*必填" ValidationGroup="three" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        获得证书:
                    </td>
                    <td>
                        <asp:TextBox ID="txtresult" runat="server" ValidationGroup="three"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        详细描述:
                    </td>
                    <td>
                        <asp:TextBox ID="txtdetail" runat="server" ValidationGroup="three"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="imgbtnmynext" runat="server" ImageUrl="~/img/create.gif" OnClick="imgbtnmynext_Click"
                            ValidationGroup="three" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab31">
            <span style="font-size: 12px; color: Red;">你没有填写培训经历表在此可以添加</span>
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtretittle" runat="server" ValidationGroup="trathree"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtretittle"
                            ErrorMessage="*必填" ValidationGroup="trathree" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        开始时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txttrabegintime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" Style="margin-bottom: 0px" ValidationGroup="trathree"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txttrabegintime"
                            ErrorMessage="*必填" ValidationGroup="trathree" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        截止时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txttraendtime" runat="server" ValidationGroup="trathree" CssClass="Wdate"
                            onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" Width="148px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="txttraendtime"
                            ErrorMessage="*必填" ValidationGroup="trathree" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        获得证书:
                    </td>
                    <td>
                        <asp:TextBox ID="txttraresult" runat="server" ValidationGroup="trathree"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        详细描述:
                    </td>
                    <td>
                        <asp:TextBox ID="txttradetail" runat="server" ValidationGroup="trathree"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:ImageButton ID="imbtnsavetra" runat="server" ImageUrl="~/img/create.gif" ValidationGroup="trathree"
                            OnClick="imbtnsavetra_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab4">
            <span style="font-size: 12px; color: Red;">如果你没有参加过工作可以不填</span>
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrename" runat="server" ValidationGroup="four"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="txtrename"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        开始时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrebegintime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" ValidationGroup="four"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="txtrebegintime"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        结束时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtreendtime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" ValidationGroup="four"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtreendtime"
                            ErrorMessage="*必填" ValidationGroup="four" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        工作内容:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecon" runat="server" ValidationGroup="four"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        详细描述:
                    </td>
                    <td>
                        <asp:TextBox ID="txtredetails" runat="server" ValidationGroup="four" Style="height: 19px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="imgbtnnext" runat="server" ImageUrl="~/img/create.gif" OnClick="imgbtnnext_Click"
                            ValidationGroup="four" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab41">
            <span style="font-size: 12px; color: Red;">你没有填写工作经历表在此可以添加</span>
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecname" runat="server" ValidationGroup="recfour"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ControlToValidate="txtrecname"
                            ErrorMessage="*必填" ValidationGroup="recfour" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        开始时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecbegintime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" ValidationGroup="recfour"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ControlToValidate="txtrecbegintime"
                            ErrorMessage="*必填" ValidationGroup="recfour" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        结束时间:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecendtime" runat="server" CssClass="Wdate" onClick="WdatePicker({startDate:'%y-%M-01 %H:%m',dateFmt:'yyyy-MM',alwaysUseStartDate:true}
)" ValidationGroup="recfour"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="txtrecendtime"
                            ErrorMessage="*必填" ValidationGroup="recfour" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        工作内容:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecre" runat="server" ValidationGroup="recfour"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        详细描述:
                    </td>
                    <td>
                        <asp:TextBox ID="txtrecde" runat="server" ValidationGroup="recfour"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="imbtnsaverec" runat="server" ImageUrl="~/img/create.gif" OnClick="imbtnsaverec_Click"
                            ValidationGroup="recfour" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab5">
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        标题:
                    </td>
                    <td>
                        <asp:TextBox ID="txtzitittle" runat="server" ValidationGroup="five"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtzitittle"
                            ErrorMessage="*必填" ValidationGroup="five"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        内容:
                    </td>
                    <td>
                        <asp:TextBox ID="txtzicon" runat="server" TextMode="MultiLine" Height="153px" Width="206px"
                            ValidationGroup="five"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="btnsave" runat="server" ImageUrl="~/img/create.gif" OnClick="btnsave_Click"
                            ValidationGroup="five" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab51">
            <span style="font-size: 12px; color: Red;">你没有填写自定义表在此可以添加</span>
            <table style="width: 400px; margin: 0 auto; border: 1px solid #0058a3; border-collapse: collapse;">
                <tr>
                    <td>
                        标题:
                    </td>
                    <td>
                        <asp:TextBox ID="txtcuti" runat="server" ValidationGroup="cufive"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator30" runat="server" ControlToValidate="txtcuti"
                            ErrorMessage="*必填" ValidationGroup="cufive"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        内容:
                    </td>
                    <td>
                        <asp:TextBox ID="txtcucon" runat="server" TextMode="MultiLine" Height="153px" Width="206px"
                            ValidationGroup="cufive"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:ImageButton ID="btnsavcus" runat="server" ImageUrl="~/img/create.gif" OnClick="btnsavcus_Click"
                            ValidationGroup="cufive" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
